﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Globalization;//
using System.Threading;

namespace IDE_week2
{
    public partial class Form1 : Form
    {

        bool en = true;
        bool ne = false;
       

        public Form1()
        {
            InitializeComponent();

        }
           
            

        private void btnChangeicon_Click(object sender, EventArgs e)
        {
            this.Icon = Properties.Resources.Icon1;
        }

        private void btnResert_Click(object sender, EventArgs e)
        {
            Icon = null;
        }

        private void btnOpenNwFm_Click(object sender, EventArgs e)
        {
            Form2 F2Form = new Form2();
            F2Form.Show();
        }

        private void ChangeLanguage(string lang)
        {
            foreach (Control c in this.Controls)
            {
                ComponentResourceManager resources =
                      new ComponentResourceManager(typeof(Form1));
                resources.ApplyResources(c, c.Name, new CultureInfo(lang));
            }
        }
        private void btnChangeLang_Click(object sender, EventArgs e)
        {
            if (en)

                ChangeLanguage("ne");
            en = false;
            ne = true;
        }
           
           
         
   

        private void btnCallClass_Click(object sender, EventArgs e)
        {
            int[] numbers = new int[10];
            Class1.MakeRandomNumber(numbers);
            CallClass1.Text = numbers[0] + ", " + numbers[1] + ", " + numbers[2];

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
        

        
    }
}
